package com.example.daggerdemo01.component;

import com.example.daggerdemo01.module.DBModule;
import com.example.daggerdemo01.module.StudentModule;
import com.example.daggerdemo01.views.InfoActivity;
import com.example.daggerdemo01.views.MainActivity;

import dagger.Component;
import jakarta.inject.Singleton;

@Singleton
@Component(modules = {StudentModule.class, DBModule.class})
public interface AllComponent {
    void injectMainActivity(MainActivity mainActivity);
    void injectInfoActivity(InfoActivity infoActivity);
}